// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_ACCOUNTING_VOUCHER_ITEM
// * CreateDate    : 2012/2/2 10:17:12
// * Creater       : CodeSmith
// * LastChangeDate: 2012/2/2 10:17:12
// * LastChanger   : 2012/2/2 10:17:12
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FinAccountingVoucherItemTable : TableInfo
    {
		public const string C_TableName = "FIN_ACCOUNTING_VOUCHER_ITEM";
		
		public const string C_ITEM_ID = "ITEM_ID";
		public const string C_VOUCHER_ID = "VOUCHER_ID";
		public const string C_ACCOUNTS_CODE = "ACCOUNTS_CODE";
		public const string C_DESCRIPTION = "DESCRIPTION";
		public const string C_DEBIT_AMOUNT = "DEBIT_AMOUNT";
		public const string C_CREDIT_AMOUNT = "CREDIT_AMOUNT";
		
		public FinAccountingVoucherItemTable()
        {
            _tableName = "FIN_ACCOUNTING_VOUCHER_ITEM";
        }
		
		protected static FinAccountingVoucherItemTable _current;
        public static FinAccountingVoucherItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FinAccountingVoucherItemTable();

            _current.Add(C_ITEM_ID, new ColumnInfo(C_ITEM_ID,"ItemId", true, typeof(string)));
            _current.Add(C_VOUCHER_ID, new ColumnInfo(C_VOUCHER_ID,"VoucherId", false, typeof(string)));
            _current.Add(C_ACCOUNTS_CODE, new ColumnInfo(C_ACCOUNTS_CODE,"AccountsCode", false, typeof(string)));
            _current.Add(C_DESCRIPTION, new ColumnInfo(C_DESCRIPTION,"Description", false, typeof(string)));
            _current.Add(C_DEBIT_AMOUNT, new ColumnInfo(C_DEBIT_AMOUNT,"DebitAmount", false, typeof(decimal)));
            _current.Add(C_CREDIT_AMOUNT, new ColumnInfo(C_CREDIT_AMOUNT,"CreditAmount", false, typeof(decimal)));
			
		}
		
		public ColumnInfo ITEM_ID
        {
            get { return this[C_ITEM_ID]; }
        }
		
		public ColumnInfo VOUCHER_ID
        {
            get { return this[C_VOUCHER_ID]; }
        }
		
		public ColumnInfo ACCOUNTS_CODE
        {
            get { return this[C_ACCOUNTS_CODE]; }
        }
		
		public ColumnInfo DESCRIPTION
        {
            get { return this[C_DESCRIPTION]; }
        }
		
		public ColumnInfo DEBIT_AMOUNT
        {
            get { return this[C_DEBIT_AMOUNT]; }
        }
		
		public ColumnInfo CREDIT_AMOUNT
        {
            get { return this[C_CREDIT_AMOUNT]; }
        }
		
		
		
	}
}

